package sk.uniza.fri.cerviix.client.network;

import java.io.DataInputStream;
import java.io.IOException;

import sk.uniza.fri.cerviix.client.Game;

public abstract class ServerMessage
{
	protected DataInputStream stream;
	
	public void attachStream(DataInputStream stream)
	{
		this.stream = stream;
	}
	
	public abstract void receive() throws IOException;
	public abstract void run(Game game);
}
